Get Models
AutomatR.ChatGPT.Activities.GetModels
The "Get Models" activity in AutomatR is part of the ChatGPT activities package, designed to retrieve a list of available ChatGPT models. This activity sends a GET request to the OpenAI API, retrieves the models, and outputs the list of models, which can be used in subsequent activities.
Properties
Name | Description |
---|---|
Misc | |
Display Name | This property allows you to customize the display name of the activity within the workflow. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Models" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Response | Returns the list of models with the data type List<Models> . The output can be used in other subsequent activities. Variables of type List<Models> to store the list of models. |
How to use:
- Drag and drop the "Get Models" activity onto the workflow.
- Configure the properties, such as the delay.
- Execute the workflow to retrieve the list of available ChatGPT models.
Example: Consider an example where the "Get Models" activity is used to retrieve the list of available ChatGPT models:
Get Models:
Delay: 2
Response: availableModels
In this example, the activity retrieves the list of available ChatGPT models, and the result is stored in the availableModels
variable for further use in the workflow.
By using the "Get Models" activity, AutomatR users can dynamically retrieve information about the available ChatGPT models, empowering them to make informed decisions when selecting the most appropriate model for their automation workflows. This activity is particularly useful for scenarios where users need to adapt their interactions based on the specific capabilities and characteristics of different ChatGPT models.